# Fieldset

<Subtitle>A native fieldset element with an easily stylable legend.</Subtitle>

<Meta
  name="description"
  content="A high-quality, unstyled React fieldset component with an easily stylable legend."
/>

import { DemoFieldsetHero } from './demos/hero';

<DemoFieldsetHero />

## Anatomy

Import the component and assemble its parts:

```jsx title="Anatomy"
import { Fieldset } from '@base-ui-components/react/fieldset';

<Fieldset.Root>
  <Fieldset.Legend />
</Fieldset.Root>;
```

## API reference

<Reference component="Fieldset" parts="Root, Legend" />
